<div class="card">
    <div class="card-header">唠唠叨叨</div>
    <div class="card-body">
    <div class="weibo">
        <!--
        <div class="weiform">
            <form id="comm-form" method="post" action="{SITE_URL}index.php?app=weibo&ac=add">
                <textarea name="title" placeholder="说点啥..."></textarea>
                <input type="hidden" name="token" value="{$_SESSION['token']}" />
                <input type="submit" value="发送" />
            </form>
        </div>
        -->

        <div class="mb-3">
            <a class="btn btn-block btn-outline-info btn-lg" href="{tsUrl('weibo')}"><i class="bi bi-chat-dots"></i> 吐个槽，唠叨两句</a>
        </div>

        <div class="clear"></div>
        <div class="weilist">
            <ul id="weibolist">
                {loop $arrWeibo $key $item}
                <li>
                    <span class="portrait"><a href="{tsUrl('user','space',array('id'=>$item['user']['userid']))}"><img align="absmiddle" class="SmallPortrait rounded-circle" title="{$item['user']['username']}" alt="{$item['user']['username']}" src="{$item['user']['face']}"></a></span>
                    <div class="body">
<div>
    <span class="user"><a href="{tsUrl('user','space',array('id'=>$item['user']['userid']))}">{$item['user']['username']}</a>：</span><span class="log">{$item['title']}</span>
</div>

{if $item['photo']}
<div class="d-flex">
    {loop $item['photo'] $pkey $pitem}
    <a class="w-25 p-1" href="{tsUrl('weibo','show',array('id'=>$item['weiboid']))}"><img class="w-100" src="{$pitem}"></a>
    {/loop}
</div>
{/if}

<div class="time">{php echo getTime(strtotime($item['addtime']),time())} (<a href="{tsUrl('weibo','show',array('id'=>$item['weiboid']))}">{$item['count_comment']}评</a>)
</div>
</div>
                    <div class="clear"></div>
                </li>
                {/loop}
            </ul>
        </div>
    </div>
    </div>
</div>